<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>2边框与内间距</title>
    <style>
       .d1{
           width: 200px;
           height: 200px;
           background-color: red;
           border: 5px solid #f00;
           border-top:8px solid #ff0 ;
           border-radius: 100px;
       }

       .d2{
           width: 200px;
           height: 200px;
           border: 5px solid #f0f;
           padding-left: 50px;
           padding-top: 50px;
           box-sizing: border-box;
           margin: 50px;
       }
       span {
           border: yellow solid 5px;
       }
       .s2{
           padding-left: 50px;
           padding-right: 50px;
       }

    </style>
</head>
<body>

    <div class="d1">

    </div>

    <div class="d2">
        内间距测试
    </div>
    <hr>
    <span>我是span1</span>
    <span class="s2">我是span2</span>
    <span>我是span3</span>
    <h1>我是标题</h1>
</body>
</html>